home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / lisp / clue.lha / clue / doc / clue.tex / node155_mn.html < prev    next >
Text File  |  1989-07-12  |  2KB  |  65 lines

  1.  
  2. <H3><A ID="SECTION004411100000000000000"><tex2html_anchor_invisible_mark></A> <A ID="ch:new-event-specifications"><tex2html_anchor_mark></A><BR>
  3. Defining New Event Specifications
  4. </H3><#5124#>
  5.            
  6.       
  7.  
  8.  
  9. <P>
  10. The syntax for event specifications can be extended to include new
  11. specification list forms defined by the programmer. 
  12. <A ID="1954"><tex2html_anchor_invisible_mark></A>
  13. The most general
  14. form of an event specification list is <#4353#><TT>(<#1955#><EM>keyword-symbol
  15. argument*</EM><#1955#>)</TT><#4353#>. The CLUE interface to this general form is defined by two
  16. functions: a check function, which verifies the syntactical
  17. correctness of the list, and a match function, which matches <#1956#><TT>event</TT><#1956#>
  18. objects with the list. The check  function for a <#1957#><EM>keyword-symbol</EM><#1957#>
  19. may be returned or changed by the <#1958#><TT>check-function</TT><#1958#> macro. 
  20.  
  21. <P>
  22. <#4675#>
  23. <#4354#><FONT SIZE="+1"><#1959#><B>check-function Macro</B><#1959#></FONT><#4354#> 
  24. <A ID="1960"><tex2html_anchor_invisible_mark></A>
  25. <DIV class="RIGHT">
  26. <tex2html_image_mark>#tex2html_wrap_inline10089#
  27. </DIV><#4675#>
  28.  
  29. <P>
  30. <DIV class="RIGHT">
  31. <tex2html_image_mark>#tex2html_wrap_inline10091#
  32. </DIV>
  33.  
  34. <P>
  35. <#4676#>
  36. The general interfaces
  37. required for  check/match functions are described below.
  38.  
  39. <P>
  40. <A ID="1973"><tex2html_anchor_invisible_mark></A>
  41. <A ID="1974"><tex2html_anchor_invisible_mark></A>
  42. <DIV class="RIGHT">
  43. <tex2html_image_mark>#tex2html_wrap_inline10092#
  44. </DIV><#4676#>
  45.  
  46. <P>
  47. <DIV class="RIGHT">
  48. <tex2html_image_mark>#tex2html_wrap_inline10095#
  49. </DIV>
  50.  
  51. <P>
  52. <A ID="1994"><tex2html_anchor_invisible_mark></A>
  53. <A ID="1995"><tex2html_anchor_invisible_mark></A>
  54. <DIV class="RIGHT">
  55. <tex2html_image_mark>#tex2html_wrap_inline10096#
  56. </DIV>
  57.  
  58. <P>
  59. <DIV class="RIGHT">
  60. <tex2html_image_mark>#tex2html_wrap_inline10097#
  61. </DIV>
  62.  
  63. <P>
  64.  
  65.  =0 <#5134#>=0 <#5138#>